#ifndef HTTPD_MODE_USER_H
#define HTTPD_MODE_USER_H

struct user
{
    int number;     /* 用户编号 */
    char name[64];       /* 用户名 */
    char password[64];   /* 密码 */ 
    char telephone[20];       /* 电话号码 */
    int age;             /* 年龄 */
    int gender;          /* 性别 */
};

extern int get_user_number(const struct user *const u);
extern const char *get_user_name(const struct user *const u);
extern const char *get_user_password(const struct user *const u);
extern const char *get_user_telephone(const struct user *const u);
extern int get_user_age(const struct user *const u);
extern int get_user_gender(const struct user *const u);

extern void set_user_number(struct user *u, int number);
extern void set_user_name(struct user *u, const char *name);
extern void set_user_password(struct user *u, const char *password);
extern void set_user_telephone(struct user *u, const char *telephone);
extern void set_user_age(struct user * u, int age);
extern void set_user_gender(struct user * u, int gender);

#endif  /* HTTPD_MODE_USER_H */
